CAMLC = ocamlc
CAMLLEX = ocamllex
CAMLYACC = ocamlyacc
calc : 	main .cmo parser.cmi parser.cmo lexer.cmo calc.cmo
	ocamlc -o calc lexer.cmo main.cmo parser.cmo calc.cmo
clean :
	rm *. cmo *. cmi calc
.SUFFIXES : .mll .mly .mli .ml .cmi .cmo .cmx
.mll.mli:
	$(CAMLLEX) $<
.mll.ml:
	$(CAMLLEX) $<
.mly.mli:
	$(CAMLYACC) $<
.mly.ml:
	$(CAMLYACC) $<
.mli.cmi :
	$(CAMLC) -c $ (FLAGS) $<
.ml.cmo :
	$(CAMLC) -c $(FLAGS) $<
